#include "gd32f10x.h"                   // Device header
#include "bsp.h"
#include "pic.h"
#include "lvgl.h"
#include "lv_port_disp.h"
#include "lv_port_indev.h"
#include "get_started/lv_example_get_started.h"

int main(void)
{
    uint16_t count = 0;
    bsp_init();
    nvic_priority_group_set(NVIC_PRIGROUP_PRE1_SUB3);
    
    lv_init();
    lv_port_disp_init();
    lv_port_indev_init();
    lv_example_get_started_1();   
    //LCD_ShowPicture(100,140,40,40,gImage_1);  
    //LCD_Fill_GAM(30,30,69,69,(uint16_t*)gImage_1);
    while(1)
    {
        lv_task_handler();
        count++;
        //printf("System has run for %d second \r\n", count);
        //delay_ms(500);
        //LED0=~LED0;
    }
}
